#ifndef VDOCKWIDGET_H
#define VDOCKWIDGET_H

#include <QFlags>
#include <QWidget>
#include <QDockWidget>

#include "VToolBar.h"

namespace Ui {
class VDockWidget;
}

class VDockWidget : public QDockWidget
{
    Q_OBJECT

public:
    enum CloseType{
        HIDE,
        EMIT
    };

    explicit VDockWidget(const QString &title, int close_type);
    ~VDockWidget();
    VToolBar *_toolbar;
public slots:
//    void slot_set_size_policy();
    void slot_dock_lock(int width, int height);
    void slot_dock_unlock();
    void slot_dock_setting(bool w, bool h);
    void slot_close_clicked();
    void slot_set_title(QString title);


signals:
    void signal_close_clicked();

private:
    Ui::VDockWidget *ui;

    bool _w = false;
    bool _h = false;
    int _close_type;
};
#endif // VDOCKWIDGET_H
